import App from './App'
// main.js
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)

import * as filters from 'utils/filter.js'
Object.keys(filters).forEach(key => {
    Vue.filter(key, filters[key])
}) 
import store from "store/store.js"
// 引入自定义封装的方法
import fun from "utils/function.js"
Vue.config.productionTip = false
Vue.prototype.$store = store
import {menuPerm} from "utils/menuPerm.js"//权限
Vue.prototype.$menuPerm = menuPerm
// 挂在到vue的protorype上面
Vue.prototype.$fun = fun

App.mpType = 'app'


// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif